$(function(){
	$('div#photo img#photo').hide();
	$('div#photo p#loading_effect')
		.width( 340 )
		.height( 150 );
		//.width( $('div#photo img#photo').width() )
		//.height( $('div#photo img#photo').height()-100 );
		
	//$('div#photo p#loading_effect')
	//	.animate( { height: $('div#photo img#photo').height() }, 100 )
	//	.animate( { width: $('div#photo img#photo').width() }, 100 , function(){
	//		
	//	$('div#photo p#loading_effect').hide();
	//	$('div#photo img#photo').fadeIn('slow');
	//		
	//	} )
});

$(window).load(function () {
	//$('div#photo img#photo').load(function(){
	$('div#photo p#loading_effect')
		.animate( { height: ($('div#photo img#photo').height()-100) }, 600 )
		.animate( { width: $('div#photo img#photo').width() }, 1000, function(){
		
		$('div#photo p#loading_effect').hide();
		$('div#photo img#photo').fadeIn('fast');
	});
});			
